package com.qqtech.qquan.order.model;

import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.TimeUtil;

@SuppressWarnings("serial")
public class OrderPayLogQuery extends OrderPayLog {
	private String userNick;

	/**
	 * 搜索开始时间
	 */
	private Timestamp searchBTime;

	/**
	 * 搜索结束时间
	 */
	private Timestamp searchETime;

	public void setSearchETimeStr(String v) {
		this.setSearchETime(TimeUtil.getTimeByDatetimeLocal(v));
	}

	public void setSearchBTimeStr(String v) {
		this.setSearchBTime(TimeUtil.getTimeByDatetimeLocal(v));
	}

	public Timestamp getSearchBTime() {
		return searchBTime;
	}

	public Timestamp getSearchETime() {
		return searchETime;
	}

	public String getUserNick() {
		return userNick;
	}

	public void setSearchBTime(Timestamp searchBTime) {
		this.searchBTime = searchBTime;
	}

	public void setSearchETime(Timestamp searchETime) {
		this.searchETime = searchETime;
	}

	public void setUserNick(String userNick) {
		this.userNick = userNick;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
}